package edu.zju.gis.cky.dao;

import edu.zju.gis.cky.entity.po.AreaStatisticPO;
import edu.zju.gis.cky.entity.po.FlowGeomPO;
import edu.zju.gis.cky.entity.po.FlowStatPO;
import edu.zju.gis.cky.entity.po.StatisticPO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ChangeGeomMapper {

    FlowGeomPO selectByPrimaryKey(String id, String tableName);

    List<FlowGeomPO> getSelective(@Param("tableName") String tableName, @Param("from") List<String> begin,
                                  @Param("to") List<String> end);
    List<FlowGeomPO> getSelectiveFilter(@Param("tableName") String tableName, @Param("from") List<String> begin,
                                  @Param("to") List<String> end,@Param("areaFilter") Double areaFilter);
    List<FlowGeomPO> selectAll(@Param("tableName") String tableName,@Param("areaFilter") Double areaFilter);
    List<StatisticPO> getSumAreaTo(@Param("tableName") String tableName);
    List<StatisticPO> getChangeSumArea(@Param("tableName") String tableName,@Param("list") List<String> list);
    List<StatisticPO> getChangeSumInArea(@Param("tableName") String tableName);
    List<AreaStatisticPO> getAreaSumByXZQH(@Param("tableName") String tableName,@Param("list") List<String> list,@Param("xzqh") List<String> xzqh,@Param("index") Integer index,@Param("sumIndex") Integer sumIndex);
}
